[#escape x as x?html]
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>客户车辆编辑</title>
[#include "/include/jsvalidation.ftl"]
[#include "/include/main.ftl"]
 [#include "/include/popdialog.ftl"]

</head>
<body>
[#if (obj.op!'')='close']
<script>closeDialog();</script>
[/#if]
                <form name="mainForm" id="mainForm" method="post" action="/Ins/customer/car/save" onsubmit="if (va.validate()) formSubmit(this);else return false;">
<INPUT TYPE="hidden" NAME="sn" VALUE="${obj.CustomerCarObj.sn?default('')}">
<INPUT TYPE="hidden" NAME="mainSn" VALUE="${(obj.CustomerCarObj.mainSn)?default('')}">
                        <div id="CustomerCar_base">

<p>
号牌号码  <input type="text"  size="20" id="carNo" name="carNo" class="max-length-40 ">

<script>$("#carNo").val("${(obj.CustomerCarObj.carNo)?default('')}");</script>
 </p>
<p>
车辆类型  <input type="text"  size="20" id="carKind" name="carKind" class="max-length-40 ">

<script>$("#carKind").val("${(obj.CustomerCarObj.carKind)?default('小型轿车')}");</script>
 </p>
<p>
所有人  <input type="text"  size="20" id="owner" name="owner" class="max-length-40 ">

<script>$("#owner").val("${(obj.CustomerCarObj.owner)?default('')}");</script>
 </p>
<p>
住址  <input type="text"  size="20" id="address" name="address" class="max-length-200 ">

<script>$("#address").val("${(obj.CustomerCarObj.address)?default('')}");</script>
 </p>
<p>
使用性质  
<select id="useKind" name="useKind">
  <option value="非营运">非营运</option>
  <option value="营运">营运</option>
</select>
<script>$("#useKind").val("${(obj.CustomerCarObj.useKind)?default('非营运')}");</script>
 </p>
<p>
品牌  
  <input type="text"  size="20" id="brand" name="brand" class="max-length-100 ">

<script>$("#brand").val("${(obj.CustomerCarObj.brand)?default('')}");</script>
 型号
 <input type="text"  size="20" id="brandKind" name="brandKind" class="max-length-100 ">
 <script>$("#brandKind").val("${(obj.CustomerCarObj.brandKind)?default('')}");</script>
</p>
<p>
车辆识别代号  <input type="text"  size="20" id="vin" name="vin" class="max-length-100 ">

<script>$("#vin").val("${(obj.CustomerCarObj.vin)?default('')}");</script>
 </p>
<p>
发动机号  <input type="text"  size="20" id="eno" name="eno" class="max-length-100 ">

<script>$("#eno").val("${(obj.CustomerCarObj.eno)?default('')}");</script>
 </p>
<p>
注册日期  <input type="text"  size="12" id="regDate" name="regDate" class="validate-date-yyyy-MM-dd" onClick="popCalendar(this)" >

<script>$("#regDate").val("${(obj.CustomerCarObj.regDate?string('yyyy-MM-dd'))?default('')}");</script>
 发证日期  <input type="text"  size="12" id="cardDate" name="cardDate" class="validate-date-yyyy-MM-dd" onClick="popCalendar(this)" >

<script>$("#cardDate").val("${(obj.CustomerCarObj.cardDate?string('yyyy-MM-dd'))?default('')}");</script>
 </p>
<p>
档案编号  <input type="text"  size="20" id="archivesNo" name="archivesNo" class="max-length-100 ">

<script>$("#archivesNo").val("${(obj.CustomerCarObj.archivesNo)?default('')}");</script>
 </p>
<p>
核定载人数  <input type="text"  size="5" id="maxPerson" name="maxPerson" class="validate-number ">

<script>$("#maxPerson").val("${(obj.CustomerCarObj.maxPerson)?default('5')}");</script>
 总质量  <input type="text"  size="10" id="totalWeight" name="totalWeight" class="validate-float ">

<script>$("#totalWeight").val("${(obj.CustomerCarObj.totalWeight)?default('')}");</script>
 整备质量  <input type="text"  size="10" id="maWeight" name="maWeight" class="validate-float ">

<script>$("#maWeight").val("${(obj.CustomerCarObj.maWeight)?default('')}");</script>
 </p>
<p>
外观尺寸  <input type="text"  size="20" id="size" name="size" class="max-length-100 ">

<script>$("#size").val("${(obj.CustomerCarObj.size)?default('')}");</script>
 </p>
<p>
检验有效期  <input type="text"  size="20" id="checkValidDate" name="checkValidDate" class="validate-date-yyyy-MM-dd" onClick="popCalendar(this)" >

<script>$("#checkValidDate").val("${(obj.CustomerCarObj.checkValidDate?string('yyyy-MM-dd'))?default('')}");</script>
 </p>

 <input type="submit" name="button" id="button" value="提交">

                        </div>

                </form>
                <script>
                  va = new Validation('mainForm');
                </script>

</body>
</html>
[/#escape]
